import 'dart:async';

import 'package:flutter/services.dart';

class AliCrashReport {
  static const MethodChannel _channel =
      const MethodChannel('ali_crash_report');

  static Future<String?> get platformVersion async {
    final String? version = await _channel.invokeMethod('getPlatformVersion');
    return version;
  }

  static void testCrash() async {
    await _channel.invokeMethod('testCrash');
  }

  static void updateNick(String nick) {
    _channel.invokeMethod('updateNick', nick);
  }
}
